package cn.sczc.jh.client.entity;

import java.util.Date;

import org.springframework.format.annotation.DateTimeFormat;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;

@TableName("equipment_pos")
public class EquipmentPos {

	@TableField(exist = false)
	private static final long serialVersionUID = 1L;

	@TableId(value = "oid", type = IdType.INPUT)
	private String oid;

	@TableField(value = "equ_no")
	private String equNo;// 设备编号

	@TableField(value = "equ_channel")
	private String equChannel;// 设备通道
	
	@TableField(value = "equ_name")
	private String equName;// 设备名称

	@TableField(value = "equ_lon")
	private Double equLon;// 设备经度

	@TableField(value = "equ_lat")
	private Double equLat;// 设备维度

	@TableField(value = "tenant_id")
	private Long tenantId; // 租户ID
	
	
	@TableField(exist = false)
	private String teamId; // teamID
	
	@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@TableField(value = "create_time")
	private Date createTime;
	
	@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@TableField(value = "update_time")
	private Date updateTime;

	public String getOid() {
		return oid;
	}

	public void setOid(String oid) {
		this.oid = oid;
	}

	public String getEquNo() {
		return equNo;
	}

	public void setEquNo(String equNo) {
		this.equNo = equNo;
	}

	public String getEquChannel() {
		return equChannel;
	}

	public void setEquChannel(String equChannel) {
		this.equChannel = equChannel;
	}

	
	public String getEquName() {
		return equName;
	}

	public void setEquName(String equName) {
		this.equName = equName;
	}

	public Double getEquLon() {
		return equLon;
	}

	public void setEquLon(Double equLon) {
		this.equLon = equLon;
	}

	public Double getEquLat() {
		return equLat;
	}

	public void setEquLat(Double equLat) {
		this.equLat = equLat;
	}

	public Long getTenantId() {
		return tenantId;
	}

	public void setTenantId(Long tenantId) {
		this.tenantId = tenantId;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public Date getUpdateTime() {
		return updateTime;
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}

	public String getTeamId() {
		return teamId;
	}

	public void setTeamId(String teamId) {
		this.teamId = teamId;
	}

}
